﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Blade.Devices {
	public static class BlockDeviceBase {
		public static void ReadBlock(this IBlockDevice device, long index, byte[] block) {
			device.ReadBlock(index, block, 0);
		}

		public static byte[] ReadBlock(this IBlockDevice device, long index) {
			var block = new byte[device.BlockSize];
			device.ReadBlock(index, block, 0);
			return block;
		}
	}
}
